package com.alks.common.utils.excelUtils;


import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.util.CellRangeAddress;

@Slf4j
@Getter
@Setter
@NoArgsConstructor
@ToString
public class MergeBuild {

    private int startRow;//合并开始行
    private int endRow;//合并结束行
    private int startCol;//合并开始列
    private int endCol;//合并结束列

    //合并规则
    public static CellRangeAddress CustomMergeRule(int startRow, int endRow, int startCol, int endCol){

        return new CellRangeAddress(startRow, endRow, startCol, endCol);
    }

    public MergeBuild(int startRow, int endRow, int startCol, int endCol) {
        this.startRow = startRow;
        this.endRow = endRow;
        this.startCol = startCol;
        this.endCol = endCol;
    }


}
